<?php

class Content  {
	
	private $elementContent;
	
	const CONTENT = 'content';
	
	public function __construct($parent, $properties)  {
		PropertySetter::setProperties($this, $properties);
		$parent->addChildElement($this);
	}
	
	public function setElementContent ($content)  {
		$this->elementContent = $content;
	}
	
	public function getElementContent ()  {
		return $this->elementContent;
	}
	
	public static function getAttributes ()  {
		$attributes = array();
		$attributes[] = self::CONTENT;
		
		return $attributes;
	}
	
	public function toString ()  {
		$output = $this->elementContent;
		
		return $output;
	}
}